package jvm;

public class SonClassInitTest extends ClassInitTest{
    private static final Integer stvalue=2;
    private static int stulong=100;
    static {
        System.out.println("常量"+stvalue);
        System.out.println(stulong);
    }

    public static void s(){
        System.out.println("我是子类s方法");
    }

    {
        System.out.println("我是子类普通代码快");
    }
    public SonClassInitTest(){
        System.out.println("子类构造方法");
    }

    public static void main(String[] args) {
        try {
            Class<?> aClass1 = SonClassInitTest.class.getClassLoader().loadClass("jvm.SonClassInitTest");
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        }
    }
}
